-- GENERATED SPELL FOR [Ashyen] --


function spell0_17900(pUnit, Event) --@Mark of Lore,n/a--
pUnit:FullCastSpellOnTarget(31808,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_17900', 631, 1)
end

function spell1_17900(pUnit, Event) --@Mark of Lore,n/a--
pUnit:FullCastSpellOnTarget(31810,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_17900', 575, 1)
end

function spell2_17900(pUnit, Event) --@Mark of Lore,n/a--
pUnit:FullCastSpellOnTarget(31811,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_17900', 559, 1)
end

function spell3_17900(pUnit, Event) --@Mark of Lore,n/a--
pUnit:FullCastSpellOnTarget(31815,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_17900', 618, 1)
end

function Sorts_17900(pUnit, Event)
local choix_sorts_17900 = math.random(0, 3)
if choix_sorts_17900 == 0 then
pUnit:RegisterEvent('spell0_17900', 1, 1)
end
if choix_sorts_17900 == 1 then
pUnit:RegisterEvent('spell1_17900', 1, 1)
end
if choix_sorts_17900 == 2 then
pUnit:RegisterEvent('spell2_17900', 1, 1)
end
if choix_sorts_17900 == 3 then
pUnit:RegisterEvent('spell3_17900', 1, 1)
end
end

function mob17900_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_17900', math.random(1500, 3000), 1)
end

function mob17900_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob17900_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob17900_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(17900, 1, 'mob17900_Action')
RegisterUnitEvent(17900, 2, 'mob17900_Leave')
RegisterUnitEvent(17900, 3, 'mob17900_Kill')
RegisterUnitEvent(17900, 4, 'mob17900_Die')
